add_compile_definitions(
  EXE_DIR=\"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}\"
)

add_mlir_library(wafer_cgra_api
  SHARED
  cgra_sim_api.cpp
  hash_padding.cpp
)

set_target_properties(wafer_cgra_api PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib COMPILE_FLAGS "-fPIC -shared -O0" POSITION_INDEPENDENT_CODE ON)